package com.hl.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Date 2022-2-14 14:34:37
 * @created by hl
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("考试实体")
@TableName(value = "exam")
public class Exam implements Serializable {

    private Integer examId;

    private String examName;

    private String examDesc;

    private Integer type;

    @TableField(strategy= FieldStrategy.IGNORED)
    private String password;

    private String examClass;

    private Integer duration;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(strategy= FieldStrategy.IGNORED)
    private Date startTime;

    private Integer totalScore;

    private Integer passScore;

    private Integer status;

    private String creator;
}
